

public class ArrayTest {
    public static void main(String[] args) {
        int[] qw = {10, 20, 40, 11, 50, 691, 52, 83, 741};
        mytools zx = new mytools();
        zx.as(qw);
        System.out.println();
        for (int i = 0; i < qw.length; i++) {
            System.out.println(qw[i] + "\t");

        }
    }
}

class mytools {
    int mmp;
    double rnm;



    public void as(int[] a) {
        for (int i = 0; i < a.length - 1; i++) {
            for (int j = 0; j < a.length - 1 - i; j++) {
                if (a[j] > a[j + 1]) {
                    int temp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = temp;
                }

            }

        }
    }
}